package com.onec.service.thread.group;

/**
 * 测试线程组
 */
public class MyThreadGroup extends ThreadGroup {


    public MyThreadGroup(String name) {
        super(name);
    }

    @Override
    public void uncaughtException(Thread t, Throwable throwable) {

        throwable.printStackTrace();
        interrupt();
    }
}
